<template>
    <div>{{ params }}{{ testRef }}</div>
</template>
<script setup>
import { defineProps, ref, defineExpose } from 'vue';
const props = defineProps({
    params: {
        type: String,
        default: 'default'
    }
})
const testRef = ref('子组件')
defineExpose({
    testRef
})
</script>